export const state = ()=>{
    return {
            draftList:[]
    }
}

export const mutations = {
    addDraft(state,data){
        state.draftList.unshift(data)
        if(state.draftList.length>5){
            state.draftList.length = 5
        }
        // state.draftList=[]
    },
    removeDraft(state,index){
        state.draftList.splice(index,1)
    }
}